![]() | ![]() | ![]() | ![]() | ![]() |
The NULLCHAR and NULLCHARVAL data set options are not honored when you are using the SAS/ACCESS® Interface to Netezza bulk-load facility and you write data from SAS to Netezza.
The following code illustrates this behavior:
proc sql; create table work.foo (i int, c char(10)); insert into work.foo values (null, null); quit; libname x netezza server=nzserver user=nzuser pwd=nzpwd database=nzdb; proc sql; create table x.foo (i int, c char(10)); quit; proc append base=x.foo (bulkload=yes)data=work.foo; run;
SAS tracing shows that the bulk-load facility generates a query like this:
INSERT INTO TEST..foo SELECT * FROM EXTERNAL '\\.\pipe\BL_foo_B9C24C51-0C90-4C29-BDA5-B0F828E0A59F' USING ( DELIMITER '|' REMOTESOURCE 'ODBC' NULLVALUE '' )
The generated query specifies NULLVALUE ' ', so any source nulls are represented as NULL in Netezza.
If you want a NULLVALUE of X, submit code specifying NULLCHARVAL='x'. Here is an example:
/* try with NULLCHAR=NO and NULLCHARVAL='x' options */ /* you expect that instead of NULL, you get 'x' */ proc append base=x.foo (bulkload=yes nullchar=no nullcharval='x') data=work.foo; run;
But SASTRACE shows the same generated query:
INSERT INTO TEST..foo SELECT * FROM EXTERNAL '\\.\pipe\BL_foo_5DB60B77-E56D-4451-812E-11463C52E203' USING ( DELIMITER '|' REMOTESOURCE 'ODBC' NULLVALUE '' )
This behavior does not occur in DATA step code that does not specify BULKLOAD.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS/ACCESS Interface to Netezza | Microsoft® Windows® for x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows 8 Enterprise 32-bit | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows 8 Enterprise x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows 8 Pro 32-bit | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows 8 Pro x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows 8.1 Pro | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows Server 2003 Datacenter Edition | 9.3_M1 | 9.3 TS1M2 | ||||
Microsoft Windows Server 2003 Enterprise Edition | 9.3_M1 | 9.3 TS1M2 | ||||
Microsoft Windows Server 2003 Standard Edition | 9.3_M1 | 9.3 TS1M2 | ||||
Microsoft Windows Server 2003 for x64 | 9.3_M1 | 9.3 TS1M2 | ||||
Microsoft Windows Server 2008 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows Server 2008 R2 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows Server 2008 for x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows Server 2012 Datacenter | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows Server 2012 R2 Std | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows Server 2012 Std | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Microsoft Windows XP Professional | 9.3_M1 | 9.3 TS1M2 | ||||
Windows 7 Enterprise 32 bit | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Windows 7 Enterprise x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Windows 7 Home Premium 32 bit | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Windows 7 Home Premium x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Windows 7 Professional 32 bit | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Windows 7 Professional x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Windows 7 Ultimate 32 bit | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Windows 7 Ultimate x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Windows Vista | 9.3_M1 | 9.3 TS1M2 | ||||
Windows Vista for x64 | 9.3_M1 | 9.3 TS1M2 | ||||
64-bit Enabled AIX | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
64-bit Enabled HP-UX | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
64-bit Enabled Solaris | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
HP-UX IPF | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Linux | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 | ||
Linux for x64 | 9.3_M1 | 9.4_M4 | 9.3 TS1M2 | 9.4 TS1M4 |